package com.eric.service;
import cn.dev33.satoken.util.SaResult;
import com.eric.domain.bso.UserBso;
import com.eric.domain.dto.SysUserDto;
import com.eric.domain.po.SysUser;
import com.github.yulichang.base.MPJBaseService;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
public interface ISysUserService extends MPJBaseService<SysUser> {

    SaResult modifyUser(SysUserDto userDto,MultipartFile profilePhoto,HttpServletRequest request);

    SaResult saveOneUser(UserBso userDto, MultipartFile profilePhoto, HttpServletRequest request);

    SaResult getAllOnPage(Integer current, Integer pageSize);


    SaResult deleteByIds(List<Integer> ids);

    SaResult getAllByNameService(String name, Integer current, Integer pageSize);

    SaResult getUsetDetailService();

    SaResult deleteOne(Integer id);

    SaResult getUserById(Integer id);
}
